basicmovecomp = {}
basicmovecomp.typeof = "update"
basicmovecomp.name = "basic move component"

function basicmovecomp:update(dt, gameobj)
	if love.keyboard.isDown("up") then
		gameobj.y  = gameobj.y - 1
	end
	if love.keyboard.isDown("down") then
		gameobj.y  = gameobj.y + 1 
	end
	if love.keyboard.isDown("left") then
		gameobj.x  = gameobj.x - 1
	end
	if love.keyboard.isDown("right") then
		gameobj.x  = gameobj.x + 1	
	end
end